<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
namespace S3\Sample1Bundle\Validator;

use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
/**
 * Description of SimpleValidator
 *
 * @author minh.ton
 */
class SimpleValidator extends ConstraintValidator{
    public function validate($value, Constraint $constraint) {
        //parent::validate($value, $constraint);
        // check the validation logic here
        if($value != '123')
        {
            $this->context->addViolation('Value is not valid!');
        }
    }
}

?>
